<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>auto cheyun cms</title>

    <link href="<?php echo base_url(); ?>static/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>static/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>static/css/animate.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>static/css/style.css" rel="stylesheet">

    <link href="<?php echo base_url(); ?>static/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

    <!-- 导入jquery -->
    <script src="<?php echo base_url(); ?>static/js/jquery-2.1.1.js"></script>

</head>

<body>
	
	<div id="wrapper">
		<!-- 左侧菜单 -->
		<?php $this->load->view('admin/common/left.html'); ?>
		<div id="page-wrapper" class="gray-bg">
			<!-- 公共头部 -->
			<?php $this->load->view('admin/common/header.html'); ?>
			<!-- content 主区域 -->
			<div class="wrapper wrapper-content">
	            <div class="row">
	                <div class="col-lg-12">
                            <div class="ibox float-e-margins">
                            <?php foreach ($nodes as $k => $v): ?>
                                <dl>
                                <div class="ibox-title">
                                    <h5><?php echo $v['title'] ?></h5>&nbsp;【<a href="<?php echo site_url('admin/auth/add_node/'.$v['id']) ?>">添加</a>】

                                </div>
                                <div class="ibox-content">
                                    <div class="form-group">
                                        <div class="col-sm-10">
                                        <?php foreach ($v['child'] as $k => $v): ?>
                                            <label class="checkbox-inline">
                                            <?php echo $v['title'] ?>&nbsp;【<a href="<?php echo site_url('admin/auth/node/'.$v['id']) ?>"><span class="glyphicon glyphicon-edit" title="编辑"></span></a>】&nbsp;【<a href=""><span class="glyphicon glyphicon-trash" title="删除"></span></a></a>】
                                            </label>
                                        <?php endforeach ?>
                                        </div>
                                    </div>
                                    
                                </div>
                                </dl>
                            <?php endforeach ?>
                            </div>
		            </div>
	            </div>
			</div>
            <?php $this->load->view('admin/common/footer.html'); ?>

		</div>
	</div>


    <!-- Mainly scripts -->
    <script src="<?php echo base_url(); ?>static/js/jquery-2.1.1.js"></script>
    <script src="<?php echo base_url(); ?>static/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url(); ?>static/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="<?php echo base_url(); ?>static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="<?php echo base_url(); ?>static/js/inspinia.js"></script>
    <script src="<?php echo base_url(); ?>static/js/plugins/pace/pace.min.js"></script>

    <!-- iCheck -->
    <script src="<?php echo base_url(); ?>static/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>

</body>